from django.urls import path
from . import views

app_name = 'users'   # 定义一个命名空间，用来区分不同应用之间的链接地址

urlpatterns = [ 
    path('login/', views.login_view, name='login'),
    path('register/', views.register, name='register'),
    path('forget_pwd/', views.forget_pwd, name='forget_pwd'),
    path('user_profile/', views.user_profile, name='user_profile'),
    path('logout/', views.logout_view, name='logout'),
    path('editor_users/', views.editor_users, name='editor_users'),

    path('forget_pwd_url/<active_code>', views.forget_pwd_url, name='forget_pwd_url'),
    path('active/<active_code>', views.active_user, name='active_user'),

    path('create/', views.create_post, name='create_post'),
    path('update/<int:post_id>/', views.update_post, name='update_post'),
    path('delete/<int:post_id>/', views.delete_post, name='delete_post'),
    path('article_list/', views.article_list, name='article_list'),

]